package org.dtrd.modules.doctor.mapper;

import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.doctor.entity.bean.DoctorStatisticsItem;
import org.dtrd.modules.doctor.entity.po.DtrdEntRdDoctorConcernPatient;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 患者重点关注记录表 Mapper 接口
 * </p>
 *
 * @author xiao
 * @since 2022-06-17
 */
@Mapper
public interface DtrdEntRdDoctorConcernPatientMapper extends BaseMapper<DtrdEntRdDoctorConcernPatient> {

    DtrdEntRdDoctorConcernPatient getConcernRecord(@Param("patientId") Integer patientId, @Param("doctorId") Integer doctorId);

    List<DtrdEntRdDoctorConcernPatient> getConcernRecordList(@Param("doctorId") Integer doctorId, @Param("orgCode") String orgCode);

    List<DoctorStatisticsItem> getConcernPatientCount(@Param("doctorId") Integer doctorId);

    void deleteRecordByPatientIds(@Param("patientIdList") Set<Integer> patientIds);

}
